package com.hl.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券-商品关联（scope_type=PRODUCT时生效）对象 coupon_product
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class CouponProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券ID */
    private String couponId;

    /** 商品ID */
    private Long productId;

    public void setCouponId(String couponId) 
    {
        this.couponId = couponId;
    }

    public String getCouponId() 
    {
        return couponId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponId", getCouponId())
            .append("productId", getProductId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
